package com.shixulin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shixulin.entity.ExamPaper;
import com.shixulin.entity.PaperQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * (ExamPaper)表数据库访问层
 *
 * @author makejava
 * @since 2023-11-20 18:21:05
 */
@Mapper
@Repository
public interface ExamPaperMapper extends BaseMapper<ExamPaper> {

    boolean UpdateCreateTime(ExamPaper createTime);

    boolean publishPaper(ExamPaper paperId);

    boolean cancelPublish(ExamPaper examPaper);

    ExamPaper getExamPaperByPaperId(int paperId);

    List<PaperQuestion> getExamQuestionByPaperId(int paperId);

    int updateExamScore(ExamPaper examPaper);

    int deleteExamPaper(int paperId);
}
